package com.property.demo.service;

import com.property.demo.model.Mailbox;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Optional;

public interface MailboxService {

    List<Mailbox> findAll();
    
    Page<Mailbox> findAll(Pageable pageable);
    
    Page<Mailbox> findByFilters(Long ownerId, String title, String status, String type, Pageable pageable);
    
    Optional<Mailbox> findById(Long id);
    
    Mailbox save(Mailbox mailbox);
    
    Mailbox update(Long id, Mailbox mailboxDetails);
    
    void delete(Long id);
    
    void deleteAll(List<Long> ids);
    
    List<Mailbox> findByOwnerId(Long ownerId);
    
    List<Mailbox> findByStatus(String status);
    
    List<Mailbox> findByType(String type);
} 